/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package launchPoints;

/**
 *
 * @author hubert
 */
public class processCancerArticles {
    public static void main(String[] args){
        parserCrawler.wikiCrawler wCrawl = new parserCrawler.wikiCrawler();
        wCrawl.setAreLinkArticlesCancerArticles(true);
        reportingClasses.reportingObject rptr = new reportingClasses.bodyTextWriter("/home/hubert/hadoopStuff/sampleCodeRun/input/isCancer", "/home/hubert/hadoopStuff/sampleCodeRun/input/rest");
        wCrawl.setReporter(rptr);
        String cancerUrl = "http://en.wikipedia.org/wiki/List_of_cancer_types";
        try{
            wCrawl.setReporter(rptr);
            wCrawl.crawl(cancerUrl, false, 1);
        }catch(exceptions.notExpectedPageTypeException e){
            e.printStackTrace();
        }
        
    }
    
}
